package com.soft.javase.day03.practice.employeeandmanger;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/17
 */
public abstract class Employee {
    private String name;
    private String id;
    private double pay;

    public Employee(String name, String id, double pay) {
        this.name = name;
        this.id = id;
        this.pay = pay;
    }

    public String getName() {
        return name;
    }

    public String getId() {
        return id;
    }

    public double getPay() {
        return pay;
    }

    protected void setPay(double pay) {
        this.pay = pay;
    }

    public abstract void addSalary(double amount);

}